<div class="modal-header">
    <h4 class="modal-title">订单详情</h4>
</div>
<div class="modal-body">

    <div class="container-fluid form-horizontal ">
        <div class="col-xs-12">
          订单列表
        </div>
        <div class="col-xs-12">
          <table class="table table-condensed table-hover table-bordered">
            <thead>
              <tr>
                <th class="col-md-2 text-center">订单名称/编号</th>
                <th class="col-md-2 text-center">游客信息</th>
                <th class="col-md-1 text-center">数量</th>
                <th class="col-md-2 text-center">购买时间</th>
                <th class="col-md-2 text-center">销售品编号/分类</th>
                <th class="col-md-1 text-center">支付状态</th>
                <th class="col-md-1 text-center">出票状态</th>
                <th class="col-md-1 text-center">分销商</th>
              </tr>
            </thead>
            <tbody>
              <tr ng-repeat="obj in objs">
                <td class="">
                  {{obj.title}}
                  <br>{{obj.code}}<br>
                  <span ng-show="obj.out_order_id">外部分销：{{obj.out_order_id}}</span>
                  <br> <span ng-show="obj.supply_order_id">供应商：{{obj.supply_order_id}}</span>
                </td>
                <td class="text-center">{{obj.name}}<br>{{obj.mobile}}<br>{{obj.cardno}}</td>
                <td class="text-center">
                  <span>购买{{obj.num}}</span><br>
                  <span>退票{{obj.back}}</span><br>
                  <span>使用{{obj.used}}</span>
                </td>
                <td class="text-center">{{obj.create_time}}</td>
                <td class="text-center">
                  {{obj.sale_code}}
                  <br />{{obj.sale_category_name}}
                </td>
                <td class="text-center">
                  <p ng-show="obj.pay_state==0" class="form-control-static">未支付</p>
                  <p ng-show="obj.pay_state==2" class="form-control-static red">游客已支付,但转分销产品预存扣款失败,3分钟后自动退款.<br/>
                  <p ng-show="obj.pay_state==3" class="form-control-static">供应商预存扣款失败,已退款处理.<br/>
                  <p ng-show="obj.pay_state==1" class="form-control-static">支付完成<br/>(
                    <span ng-show="obj.payment_type==1" class="form-control-static">支付宝支付</span>
                    <span ng-show="obj.payment_type==2" class="form-control-static">微信支付</span>
                    <span ng-show="obj.payment_type==3" class="form-control-static">网银在线</span>
                    <span ng-show="obj.payment_type==4" class="form-control-static">平台余额</span>
                    <span ng-show="obj.payment_type==5" class="form-control-static">现金支付</span>
                    <span ng-show="obj.payment_type==6" class="form-control-static">供应商预存</span>
                    <span ng-show="obj.payment_type==8" class="form-control-static">同业支付</span>
                    <span ng-show="obj.payment_type==9" class="form-control-static">半价支付</span>)
                  </p>
                </td>
                <td class="text-center">
                  <!-- <span popover="{{obj.cancel_reason}}" popover-trigger="mouseenter">{{obj.ticket_state_name}}</span> -->
                  <!--<br>-->
                  {{obj.ticket_state_name}}
                  <!-- <button popover="{{obj.cancel_reason}}" popover-trigger="mouseenter" class="btn btn-success">Mouseenter</button> -->
                  <span ng-show="obj.ticket_state == 9 || obj.ticket_state == 7">
                    <br>{{obj.cancel_reason}}
                  </span>
                </td>
                <td class="text-center">{{obj.company_name}}<br>{{obj.company_code}}<br>{{obj.operation_login_name}}</td>
              </tr>
            </tbody>
          </table>
          <div class="text-right" style="background-color: white">
            <pagination total-items="bigTotalItems" ng-model="bigCurrentPage" max-size="maxSize" class="pagination-sm" boundary-links="true"
             ng-change="load()" items-per-page="itemsPerPage" previous-text="上一页" next-text="下一页" first-text="首页" last-text="末页" rotate="false">
            </pagination>
          </div>
        </div>
        <div ng-show="obj.pay_fee_type == '龙支付'">
          <div class="col-xs-12">
            龙支付详情
          </div>
          <div class="col-xs-12">
            <table class="table table-condensed table-hover table-bordered" style="display: table; width: 100%;table-layout:fixed;">
              <thead>
                <tr>
                  <th class="text-center" style="width: 10%;vertical-align: middle;">龙支付的响应码</th>
                  <th class="text-center" style="width: 30%;text-align:center;vertical-align: middle;">支付成功的签名</th>
                  <th class="text-center" style="width: 20%;vertical-align: middle;">龙支付的响应信息</th>
                  <th class="text-center" style="width: 20%;vertical-align: middle;">商户号</th>
                  <th class="text-center" style="width: 20%;vertical-align: middle;">下单时间</th>
                </tr>
              </thead>
              <tbody>
                <tr ng-repeat="obj in infoobj">
                  <td class="text-center" style="vertical-align: middle;">{{obj.error_code}}</td>
                  <td class="text-center" style="text-align:center;vertical-align: middle;">
                    <div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{obj.sign}}">{{obj.sign}}</div>
                  </td>
                  <td class="text-center">{{obj.errmsg}}</td>
                  <td class="text-center">{{obj.merchant_id}}</td>
                  <td class="text-center">{{obj.create_time}}</td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="col-xs-12">
            龙支付退款详情
          </div>
          <div class="col-xs-12">
            <table class="table table-condensed table-hover table-bordered">
              <thead>
                <tr>
                  <th class="col-md-2 text-center">龙支付退款Id</th>
                  <th class="col-md-2 text-center">购物车订单编号</th>
                  <th class="col-md-2 text-center">请求序列号/商户号<br>交易码</th>
                  <th class="col-md-1 text-center">退款响应码</th>
                  <th class="col-md-1 text-center">退款相应信息</th>
                  <th class="col-md-1 text-center">语言</th>
                  <th class="col-md-1 text-center">支付金额</th>
                  <th class="col-md-1 text-center">退款金额<br>退款时间</th>
                </tr>
              </thead>
              <tbody>
                <tr ng-repeat="obj in backobj">
                  <td class="text-center">{{obj.id}}</td>
                  <td class="text-center">{{obj.order_num}}</td>
                  <td class="text-center">
                    <span>{{obj.request_sn}}</span>/
                    <span>{{obj.cust_id}}</span><br>
                    <span>{{obj.tx_code}}</span>
                  </td>
                  <td class="text-center">{{obj.result_code}}</td>
                  <td class="text-center">{{obj.result_msg}}</td>
                  <td class="text-center">{{obj.Language}}</td>
                  <td class="text-center">{{obj.pay_amount * 0.01 | currency : '￥'}}</td>
                  <td class="text-center">{{obj.amount * 0.01 | currency : '￥'}}<br>{{obj.createTime}}</td>
                </tr>
              </tbody>
            </table>
            <!-- <div class="text-right" style="background-color: white">
              <pagination total-items="bigTotalItems1" ng-model="bigCurrentPage1" max-size="maxSize1" class="pagination-sm" boundary-links="true"
               ng-change="loadInfo()" items-per-page="itemsPerPage1" previous-text="上一页" next-text="下一页" first-text="首页" last-text="末页" rotate="false">
              </pagination>
            </div> -->
          </div>
        </div>

    </div>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="ok()">OK</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>